<html><head><title>ResetList</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ResetList()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>ResetList</b></font>(List()) </blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Resets the current list element to be before the first element. This means no element 
is actually valid. However, this is very useful to allow you to process all the elements 
by using <a href="nextelement.html">NextElement()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>List()</i></td>
<td width="90%"> 
The name of your list variable, created with the <a href="../reference/newlist.html">NewList</a> function. 
You must include the brackets after the list name. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">NewList</font></b> <font color="#006666">Friends</font>.s()
  
<font color="#006666">  AddElement</font>(<font color="#006666">Friends</font>())
<font color="#006666">  Friends</font>() = "Arnaud"
  
<font color="#006666">  AddElement</font>(<font color="#006666">Friends</font>())
<font color="#006666">  Friends</font>() = "Seb"
  
<font color="#006666">  ResetList</font>(<font color="#006666">Friends</font>())
  <b><font color="#006666">While</font></b> <font color="#006666">NextElement</font>(<font color="#006666">Friends</font>())
    <b><font color="#006666">Debug</font></b> <font color="#006666">Friends</font>() <font color="#006666">; Display all the list elements</font>
  <b><font color="#006666">Wend</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="nextelement.html">NextElement()</a>, <a href="listindex.html">ListIndex()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=pushlistposition.html>PushListPosition()</a> - <a href=index.html>List Index</a> - <a href=selectelement.html>SelectElement()</a> ->

</body></html>